package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/11/24
 * Time:12:20
 */
@RestController
@SpringBootApplication
@EnableEurekaClient  //开启注册中心，注册服务到注册中心上
public class AppOrderServer {

    @RequestMapping("/")
    public String index(){
        return "访问订单服务成功!";
    }

    public static void main(String[] args) {
        SpringApplication.run(AppOrderServer.class,args);
    }
}
